﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<WRSManagementSystem.DomainModel.Entities.Person>" %>
    
<fieldset>
    <legend>Dane</legend>
    
    <%=Html.HiddenFor(model => model.Id)%>
    <%
        Html.ValidationSummary();%>
    <div class="editor-label">
        <%=Html.Label("Imię")%>
    </div>
    <div class="editor-field">
        <%=Html.TextBoxFor(model => model.Name)%>
        <%=Html.ValidationMessageFor(model => model.Name)%>
    </div>
    <div class="editor-label">
        <%=Html.Label("Nazwisko")%>
    </div>
    <div class="editor-field">
        <%=Html.TextBoxFor(model => model.Surname)%>
        <%=Html.ValidationMessageFor(model => model.Surname)%>
    </div>
    <div class="editor-label">
        <%=Html.Label("E-mail")%>
    </div>
    <div class="editor-field">
        <%=Html.TextBoxFor(model => model.Email.mail)%>
        <%=Html.ValidationMessageFor(model => model.Email.mail)%>
    </div>
    <div class="editor-label">
        <%=Html.Label("Numer telefonu")%>
    </div>
    <div class="editor-field">
        <%=Html.TextBoxFor(model => model.Phone.PhoneNumber)%>
        <%=Html.ValidationMessageFor(model => model.Phone.PhoneNumber)%>
    </div>
     <div class="editor-label">
        <%=Html.Label("Foto Foto")%>
    </div>
    <div class="editor-field">
      <input type="file" id="Foto" name="FotoFoto"/>
    </div>
    <br />
    <p>
            <input type="submit" value="Zapisz" />
    </p>
</fieldset>